package com.ziyun.erp.common.e.order;

public enum SignleDoubleFace {

	/** 单面 */
	single_face(1, 1, 2),

	/** 双面 */
	double_face(0, 2, 1);

	private int face;

	private int ratio;

	private int printRatio;

	SignleDoubleFace(int face, int ratio, int printRatio) {
		this.face = face;
		this.ratio = ratio;
		this.printRatio = printRatio;
	}

	public static SignleDoubleFace valueOf(int face) {
		for (SignleDoubleFace signleDoubleFace : SignleDoubleFace.values()) {
			if (signleDoubleFace.face == face) {
				return signleDoubleFace;
			}
		}
		return null;
	}

	public int getFace() {
		return face;
	}

	public void setFace(int face) {
		this.face = face;
	}

	public int getRatio() {
		return ratio;
	}

	public void setRatio(int ratio) {
		this.ratio = ratio;
	}

	public int getPrintRatio() {
		return printRatio;
	}

	public void setPrintRatio(int printRatio) {
		this.printRatio = printRatio;
	}

}
